<script setup lang='ts'>
import { useCounterStore } from '@/stores/counter';

const counter = useCounterStore()

</script>

<template>
    <div style="border: 5px solid pink; width:200px; height:200px;">
        组件B
        <div>数量：{{ counter.count }}</div>
        <div>双倍数量：{{ counter.doubleCount }}</div>
    </div>
</template>

<style scoped></style>